﻿using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Prototype.Projects
{
    public class Recent
    {
        private string RECENT_FILENAME = Application.StartupPath + "\\Resources\\recent.lst";

        public Recent()
        {
            // Check if Recent File List exists   
            if (File.Exists(RECENT_FILENAME))
            {
                // Load File Data
                loadRecentFile();
            }
            else
            {
                // Create File Data
                createRecentFile();
            }
        }

        // Create Recent List
        private void createRecentFile()
        {
            // Create File from File Info
            FileStream fs = new FileInfo(RECENT_FILENAME).Create();

            // Dispose + Close
            fs.Dispose();
            fs.Close();
        }

        // Load Recent Files list
        // *Probably change to a return method
        private void loadRecentFile()
        {

        }
    }
}
